home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / Scripting / Simple Semantic Interface / README Simple S. I. < prev    next >
Encoding:
Text File  |  1995-12-15  |  1.5 KB  |  19 lines  |  [TEXT/ttxt]

  1. Simple Semantic Interface Read Me
  2. By The OpenDocâ„¢ Engineering Team
  3. December 15, 1995
  4.  
  5.  
  6. © 1993-1995  Apple Computer, Inc. All Rights Reserved.
  7. Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
  8. Mac and OpenDoc are trademarks of Apple Computer, Inc.
  9. ----------------------------------------------------------------------------------------------------------------------------
  10.  
  11.  
  12. In order to support scripting, you must implement a subclass of the class ODSemanticInterface. This PartMaker document contains the ingredients for a simple subclass of ODSemanticInterface. If will generate everything you need: the .idl, .cpp, .xih and .xh files.
  13.  
  14. This subclass doesn't do anything. In fact, it simply returns the appopriate error codes when any of its methods are called (aside from the initialization and destruction methods). However, the methods contain lots of good boilerplate code and comments as to how to implement the method.
  15.  
  16. A simple subclass of ODSemanticInterface is appopriate when you are only implementing just a little scripting functionality in your part. If you are doing a full-blown scripting implementation, you may wish to look at the class ODCPlusSemanticInterface. This class provides a dispatcher that allows you to install callback procedures much in the same way that you would use the functions of the Apple event manager such as AEInstallEventHandler. 
  17.  
  18. The root of the class name is "SemtIntf", but by typing in a unique string when the PartMaker dialog comes up, your class name will be <your input>_SemtIntf.
  19.